const Mock = require('mockjs')

var data = Mock.mock({
  'list|100': [
    {
      id: '@id',
      isSelected: false,
      //下面是通过mckjs模块产生随机数据
      productPic: "@image('100×100', '#fb0a2a')",
      productName: '@cparagraph(1)',
      productInfo: '@cparagraph(1)',
      price: '@float(0, 100)',
      number: 1
    }
  ]
})

module.exports = () => {
  return { data }
}
